﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserLogin.aspx.cs" Inherits="Joyintech.Web.inpiao365.UserCenter.UserLogin" %>
#parse("../include/Header.html")

<script type="text/javascript" language="javascript">
    function checkLogin() {
        var userName = $("#txtUserName").val();
        var userPwd = $("#txtPwd").val();
        if (userName == "用户名|邮箱|手机号" || userName == "") {
            $("#divMsg").html("用户名不能为空！");
            $("#divMsg").show();
            return false;
        }
        else if (userPwd == "") {
            $("#divMsg").html("密码不能为空！");
            $("#divMsg").show();
            return false;
        }
        else {
            $("#divMsg").hide();
        }
    }

    function hideMsgDiv() {
        $("#hei30").hide();
    }
    function checkUserName() {
        var userName = $("#txtUserName").val();

        if (userName == "用户名|邮箱|手机号" || userName == "") {
            alert("用户名不能为空！");
            $("#linkbGetback").attr("href", "#");
        }
        else {
            $("#linkbGetback").attr("href", "javascript:__doPostBack('linkbGetback','')");
        }
    } 
</script>
<form id="form1" runat="server">

<div class="maincon" align="center">
      <div class="reg login" align="left">
        <div class="logbox">
          <h2>登录影票365，看大片</h2>
          <div id="divMsg" class="onError" style="display:none;">您输入的账户名和密码不匹配，请重新输入。</div>
	  <div class="clear"></div>
      <p class="userhei">
      <label for="txtUserName">登录:</label><asp:TextBox ID="txtUserName" runat="server" CssClass="colorbb" maxlength="50" onblur="if(this.value=='')this.value='用户名|邮箱|手机号';this.className='colorbb';" onfocus="if(this.value=='用户名|邮箱|手机号')this.value='';this.className='color333 onfusbox';" value="用户名|邮箱|手机号"></asp:TextBox>
            </p>
          <p><label for="txtPwd">密码:</label><asp:TextBox ID="txtPwd" runat="server" TextMode="Password" maxlength="50" CssClass="colorbb" onblur="this.className='';" onfocus="this.className='onfusbox';"></asp:TextBox>
            </p>
          <p class="lgsave color7d"><label for="ckbsavecookie"><asp:CheckBox ID="CheckBox1" runat="server" Text="保存我的登录用户" Checked="True" /></label></p>
          <p class="lgsave lgbtn">
              <asp:ImageButton ID="btnLogin" runat="server" src="images/logbtn.jpg" 
                  onclick="btnLogin_Click" style="border-width:0px;" 
                  onclientclick="return checkLogin();" />
&nbsp;<a onclick="checkUserName();" id="linkbGetback" class="forpass" href="javascript:__doPostBack('linkbGetback','')">忘记密码？</a></p>
          <div class="noreg">
            <p>您还没有影票365的账号, <a href="Register.aspx" title="点击这里去注册">立即注册</a></p>
          </div>
          <div class="shengdalink"></div>
        </div>
      </div>
    </div>

</form>
#parse("../include/Footer.html")
